package com.sdx.console.transaction.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *退款查询
 */
public class FinTransactionRefundQuery extends PageParam {
    @Query(name = "退款单号", display = true)
    private String refundId;
    @Query(name = "交易单号", display = true)
    private String transactionId;
    @Query(name = "退款状态", display = true,type=Query.TYPE_DICT,dict="REFUND_STATUS")
    private Integer refundStatus;
    @Query(name = "支付类型", display = true)
    private Integer payMethod;
    private String applyTimeQuery;

    private Date applyTimeStart;


    private Date applyTimeEnd;

    private String orderNo;

    private Integer payType;

    private String  tradeNo;

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getApplyTimeQuery() {
        return applyTimeQuery;
    }

    public void setApplyTimeQuery(String applyTimeQuery) {
        this.applyTimeQuery = applyTimeQuery;
        Date[] timePair = Utils.parseQueryTime(applyTimeQuery);
        if (timePair!=null && timePair[0]!=null) {
            this.applyTimeStart = timePair[0];
        }
        if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
            this.applyTimeEnd = timePair[1];
        }
    }
    public Date getApplyTimeStart() {
        return applyTimeStart;
    }
    public void setApplyTimeStart(Date applyTimeStart) {
        this.applyTimeStart = applyTimeStart;
    }
    public Date getApplyTimeEnd() {
        return applyTimeEnd;
    }

    public void setApplyTimeEnd(Date applyTimeEnd) {
        this.applyTimeEnd = applyTimeEnd;
    }
    public String getRefundId(){
        return  refundId;
    }
    public void setRefundId(String refundId ){
        this.refundId = refundId;
    }
    public String getTransactionId(){
        return  transactionId;
    }
    public void setTransactionId(String transactionId ){
        this.transactionId = transactionId;
    }
    public Integer getRefundStatus(){
        return  refundStatus;
    }
    public void setRefundStatus(Integer refundStatus ){
        this.refundStatus = refundStatus;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }
}
